<script>
    function test(json) {
      console.log(json);
    }
  </script>
  <script src="http://localhost:8082/test1.php"></script>